package org.example.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.ann.Schema;

import java.util.Date;

@Data
@Schema(description = "用户表")
@TableName(value = "sys_user")
@EqualsAndHashCode(callSuper = true)
public class UserDO  extends BaseDO {

    @Schema(description = "主键")
    @TableId(type= IdType.ASSIGN_ID)
    private Long id;


    @Schema(description = "用户名")
    @TableField(value = "user_name")
    private String userName;

    @Schema(description = "密码")
    @TableField(value = "password")
    private String password;

    @Schema(description = "昵称")
    @TableField(value = "nick_name")
    private String nickName;

    @Schema(description = "邮箱")
    @TableField(value = "email")
    private String email;

    @Schema(description = "手机号")
    @TableField(value = "phone_number")
    private String phoneNumber;

    @Schema(description = "状态  1：正常 0：禁用")
    @TableField(value = "status")
    private Integer status;


    @Schema(description = "性别  1：男 2：女")
    @TableField(value = "sex")
    private Integer sex;

    @Schema(description = "头像")
    @TableField(value = "avatar")
    private String avatar;

    @Schema(description = "用户类型  1：普通用户 2：管理员")
    @TableField(value = "user_type")
    private Integer userType;
}
